package baseclass.a_sort;

/**
 * @date 2020/2/26 19:23
 */
public class ArraysTool {

    public static boolean check(int[] arr) {
        return arr != null && arr.length > 1;
    }


    public static void swap(int[] arr, int i, int j) {
        if (i != j) {
            arr[i] = arr[j] ^ arr[i];
            arr[j] = arr[j] ^ arr[i];
            arr[i] = arr[j] ^ arr[i];
        }
    }

}
